<!DOCTYPE html> 
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Joob - Mạng xã hội địa điểm</title>
		<meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1, user-scalable=0">
    </head>
    <body>
		<!-- required libraries -->
		<script type="text/javascript" src="http://www.google.com/jsapi" build="no"></script>
		<script type="text/javascript" src="http://www.google.com/uds/?file=gdata&amp;v=1.x" build="no"></script>
		<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&lang=vi" build="no"></script>
		
		<script type="text/javascript" src="static/js/all.js"></script>
		<!-- addons -->
		
		<!-- stylesheet -->
		<link href="static/css/all.css" rel="stylesheet" type="text/css" />
		
        <script>
            $(document).ready(function(){
				$.get('static/microtemplating/all.txt', {}, function(ret)	{
					var useragent = navigator.userAgent;
					if (useragent.indexOf('MSIE') != -1)	{
						$('#Application-Main').html(ret);
					} else {
						document.getElementById('Application-Main').innerHTML = ret;
					}
					var bkbootstrap = new Bootstrap();
	                var app = SingletonFactory.getInstance(Application);
	                app.getSystemProperties().set("host.root", "/joob/");
	                app.getSystemProperties().set("page.default", "Home");
	                app.setBootstrap(bkbootstrap);
	                Request.setProactive(true);
					app.begin();
					
	                $(window).bind("hashchange", function(){
	                    if (Request.getProactive != true) {
	                        var subject = SingletonFactory.getInstance(Subject);
	                        subject.notifyEvent('NeedAssembleRequest');
	                    }
	                    Request.setProactive(false);
	                });
				});
            });
        </script>
        
		<div data-role="page">
			<div id="Application-Main">
				
			</div>
		</div>
</body>
</html>